package stage_1_module_2.code.homework_3;

/**
 * 通话套餐类 特征：通话时长、短信条数、每月资费 行为: 显示所有套餐信息
 */
public class Call extends Abstractsheet implements Iscall {
    private int callAmount;
    private int msgAmount;
    private int consumeAmount;

    public void setcallAmount(int amount) {
        this.callAmount = amount;
    }
    public int getcallAmount() {
        return this.callAmount;
    }
    public void setmsgAmount(int amount) {
        this.msgAmount = amount;
    }
    public int getmsgAmount() {
        return this.msgAmount;
    }
    public void setconsumeAmount(int amount) {
        this.consumeAmount = amount;
    }
    public int getconsumeAmount() {
        return this.consumeAmount;
    }

    public void display() {
        System.out.printf("时长：%d,短信:%d,每月资费%d\n",callAmount, msgAmount, consumeAmount);
    }

    public void servicecall(int amount, Card card) {
        System.out.println("通话测试:"+amount);
        card.display();
    }
}
